package com.situ.stl.service;

import com.github.pagehelper.PageInfo;
import com.situ.stl.entity.Reserve;

import java.util.List;

/** 
 * Service层 - 预约
 */
public interface ReserveService{

    /** 
     * add
     */
    int add( Reserve reserve) throws Exception;

    /** 
     * remove
     */
    int remove( int id) throws Exception ;

    /** 
     * edit
     */
    int edit( Reserve reserve) throws Exception ;

    /**
     * 批量签到
     * @param reserves
     * @return
     */
    int batchReserve(List<Reserve> reserves) throws Exception;

    /** 
     * getById
     */
    Reserve getById( int id) ;

    /** 
     * get All
     */
    List<Reserve> getAll() ;

    /** 
     * search
     */
    List<Reserve> search( Reserve reserve) ;

    /** 
     * searchByPage
     */
    PageInfo searchByPage( Integer page, Integer limit, Reserve reserve) ;

}